package com.storm.future.red.soviet.building;

import com.storm.future.annotation.Building;
import com.storm.future.red.common.BattleBase;
import com.storm.future.red.common.PowerPlant;
import com.storm.future.red.soviet.SovietBattleBase;
import com.storm.future.red.soviet.solider.Boris;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Description;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.beans.ConstructorProperties;

/**
 * @author gu
 * @date 2020/3/16 10:02
 */
@Building
public class SovietPowerPlant extends PowerPlant {

    private final static int NORMAL_POWER = 150;

    public SovietPowerPlant(@Qualifier("allStar") String base) {
        super(new SovietBattleBase(new Boris()));
        System.out.println(base);
    }

    @Override
    public void increasePower() {
        base.increasePower(NORMAL_POWER);
    }

    @Override
    public boolean checkMoney() {
        return false;
    }

    @Override
    public void shutdown() {
        // 发电厂本身不会受电力影响
    }

    @Override
    public void active() {
        // 发电厂本身不会受电力影响
    }

    @Override
    public void destroy() {
        // 应该触发电力的变化
    }

    @Override
    public void sale() {

    }
}
